﻿
//using Module.Test.Application.RefitServices;

//namespace Module.Test.Api.Controllers
//{
//    /// <summary>
//    /// 
//    /// </summary>
//    [AllowAnonymous]
//    public class RefitCustomController : ModuleController
//    {
//        private readonly IRefitCustomAppService _refitCustomAppService;
//        public RefitCustomController( INotificationHandler<DomainNotification> notifications
//            , IRefitCustomAppService refitCustomAppService
//            ) : base(notifications)
//        {
//            _refitCustomAppService = refitCustomAppService;
//        }

//        [HttpGet]
//        public async Task<IList<CustomDto>> GetAll()
//        {
//            var result = await _refitCustomAppService.GetAll();
//            var apiResult = result.GetData<IList<CustomDto>>();
//            return apiResult;
//        }

//        [HttpGet]
//        public async Task<CustomDto> Get(long id)
//        {

//            var result = await _refitCustomAppService.Get(id);
//            var apiObj = result.GetData<CustomDto>();
//            return apiObj;

//        }

//        [HttpGet]
//        public async Task<IApiResult> GetById(long id)
//        {

//            var result = await _refitCustomAppService.GetById(id);
//            var apiResult = JsonConvert.DeserializeObject<ApiResult<CustomDto>>(result);
//            return apiResult;

//        }
//    }
//}
